package geektime.spring.springbuks.mapper.db1;


import geektime.spring.springbuks.bean.dp1.Account;
import geektime.spring.springbuks.bean.dp1.User;

import java.util.List;

public interface AccountMapper {

    int insert(Account account);

    int insertSelective(Account record);

    Account selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Account record);

    int updateByPrimaryKey(Account record);

    User ByAccount(String account);

    List<Account> selectByPrimaryAll(Long userId, int page, int pageSize);

    int delectAccount(Long id);
}